package com.sgsg.delegatemode;

import android.util.Log;

public class ObserverA implements Observer{

    private Subject subject;
    private String name;

    public ObserverA(Subject subject, String name) {
        this.subject = subject;
        this.name = name;
    }

    @Override
    public void update() {
        Log.i("tag",name+"_通知你的信息是："+subject.getSubjectState());
    }
}
